/**
 * Package:com.afteryuan.util;
 * $Id$
 * Copyright(c) 2001-2009 www.afteryuan.com
 */
package com.afteryuan.util;

import java.util.UUID;

/**
 * UUIDGenerator
 * <p/>
 * <p><a href="UUIDGenerator.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@gmail.com">$Author$</a>
 * @version $Revision$
 */
public class UUIDGenerator {
    /**
     * 生成一个32为的UUID字符串
     * @return
     */
    public static String generate(){
            return UUID.randomUUID().toString().replaceAll("-","");
    }

    public static void main(String[] args) {
        System.out.println("UUIDGenerator:"+UUIDGenerator.generate());   
    }
}
